package com.example.musicplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.musicplatform.entity.Sheet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: caowj1217
 * @Date: 2021/8/5上午9:59
 * @Description:
 */
@Mapper
public interface SheetMapper extends BaseMapper<Sheet> {

    List<Sheet> findSheetWithMusic(Long id);

    int addSongSheet(@Param("sheetName") String sheetName, @Param("id") Long id);

    int addSong(@Param("sheetId") Long sheetId,@Param("musicId") Long musicId);
}
